package com.example.sikong.dto;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
public class SiKongResult<T> implements Serializable {
    private Integer code;

    private String message;

    private T data;

    public boolean success() {
        return code != null && code == 0;
    }
}
